<template>
  <div id="app">
    <Props name="张三" :type="type" :isVisible="false" :onChange="handlePropChange"></Props>
  </div>
</template>

<script>
import Props from './components/Props.vue'
export default {
  name: 'App',
  components: {
    Props
  },
  data() {
    return {
      type: 'success'
    }
  },
  methods: {
    handlePropChange(type) {
      this.type = type 
    }
  }
}
</script>